package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Permission;

import java.util.List;
import java.util.Set;

public interface PermissionDao {
    public Set<Permission> findByRoleId(Integer roleId);



    public void addPermission(Permission permission);

    public void deletePermissionById(Integer id);

    public Long findCountByPermissionId(Integer id);

    public void editPermissionByCondition(Permission permission);

    public Permission findByCondition(Permission permission);

    public List<Permission> findAll();

    public Page<Permission> findByPermissionName(String queryString);
}
